import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/views/home/Index'
import WritePoint from '@/views/home/WritePoint'
import topic from '@/views/home/topic'
import Comments from '@/views/home/Comments'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '*',
      name: '/',
      component: Home
    },
    {
      path: '/aboutUs',
      name: 'aboutUs',
      component: resolve => System.import('@/views/AboutUs.vue')
    },
    {
      path: '/home',
      name: 'Home',
      component: resolve => System.import('@/views/home/Index.vue')
    },
    {
      path: '/home/writePoint',
      name: 'writePoint',
      component: WritePoint
    },
    {
      path: '/home/topic',
      name: 'topic',
      component: topic
    },
    {
      path: '/home/comments',
      name: 'comments',
      component: Comments
    },
    {
      path: '/market',
      name: 'market',
      component: resolve => System.import('@/views/market/Index.vue')
    },
    {
      path: '/market/productList',
      name: 'productList',
      component: resolve => System.import('@/views/market/ProductList.1.vue')
    },
    {
      path: '/market/productDetail',
      name: 'productDetail',
      component: resolve => System.import('@/views/market/ProductDetail.vue')
    },
    {
      path: '/market/sampleProductList',
      name: 'sampleProductList',
      component: resolve => System.import('@/views/market/SampleProductList.vue')
    },
    {
      path: '/activity',
      name: 'activity',
      component: resolve => System.import('@/views/activity/Index.vue')
    },
    {
      path: '/activity/activityDetail',
      name: 'activityDetail',
      component: resolve => System.import('@/views/activity/ActivityDetail.vue')
    },
    {
      path: '/activity/groupActivity',
      name: 'groupActivity',
      component: resolve => System.import('@/views/activity/GroupActivity.vue')
    },
    {
      path: '/activity/activityHighlights',
      name: 'activityHighlights',
      component: resolve => System.import('@/views/activity/ActivityHighlights.vue')
    },
    {
      path: '/activity/groupViews',
      name: 'groupViews',
      component: resolve => System.import('@/views/activity/GroupViews.vue')
    },
    {
      path: '/activity/groupIntro',
      name: 'groupIntro',
      component: resolve => System.import('@/views/activity/GroupIntro.vue')
    },
    {
      path: '/specialColumn',
      name: 'specialColumn',
      component: resolve => System.import('@/views/specialColumn/Index.vue')
    },
    {
      path: '/specialColumn/columnContentList',
      name: 'columnContentList',
      component: resolve => System.import('@/views/specialColumn/ColumnContentList.vue')
    },
    {
      path: '/specialColumn/columnContentDetail',
      name: 'columnContentDetail',
      component: resolve => System.import('@/views/specialColumn/ColumnContentDetail.vue')
    },
    {
      path: '/me',
      name: 'me',
      component: resolve => System.import('@/views/me/Index.vue')
    },
    {
      path: '/me/vipcard',
      name: 'vipcard',
      component: resolve => System.import('@/views/me/Vipcard.vue')
    },
    {
      path: '/me/baseInfo',
      name: 'baseInfo',
      component: resolve => System.import('@/views/me/BaseInfo.vue')
    },
    {
      path: '/me/info',
      name: 'info',
      component: resolve => System.import('@/views/me/Info.vue')
    },
    {
      path: '/me/order',
      name: 'order',
      component: resolve => System.import('@/views/me/Order.vue')
    },
    {
      path: '/me/center',
      name: 'center',
      component: resolve => System.import('@/views/me/Center.vue')
    },
    {
      path: '/me/follower',
      name: 'follower',
      component: resolve => System.import('@/views/me/Follower.vue')
    },
    {
      path: '/me/qrcode',
      name: 'qrcode',
      component: resolve => System.import('@/views/me/Qrcode.vue')
    },
    {
      path: '/payform',
      name: 'payform',
      component: resolve => System.import('@/views/conmon/PayForm.vue')
    },
    {
      path: '/cashier',
      name: 'cashier',
      component: resolve => System.import('@/views/conmon/Cashier.vue')
    },
    {
      path: '/test',
      name: 'index',
      component: resolve => System.import('@/views/test/Index.vue')
    },
    {
      path: '/test/DataDriven',
      name: 'DataDriven',
      component: resolve => System.import('@/views/test/DataDriven.vue')
    },
    {
      path: '/test/Parent',
      name: 'Parent',
      component: resolve => System.import('@/views/test/Parent.vue')
    },
    {
      path: '/test/vuex',
      name: 'vuex',
      component: resolve => System.import('@/views/test/Vuex.vue')
    }
  ]
})
